package com.android.tea;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.android.tea.util.TeaLog;

public class FriendAddActivity extends Activity implements OnClickListener{
	private static final String TAG = "FriendAddActivity";
	private Button btn_agree_add;
	private Button btn_agree;
	private Button btn_refuse;
	private ImageView avatar;
	private TextView nameText;
	private TextView reasonText;
	private Button btn_back;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.add_friend);
		
		initComponents();
		
		updateUI();
	}

	private void updateUI() {
		// TODO Auto-generated method stub
		
	}

	private void initComponents() {
		btn_back = (Button)findViewById(R.id.btn_back);
		avatar = (ImageView)findViewById(R.id.imageView1);
		nameText = (TextView)findViewById(R.id.name);
		reasonText = (TextView)findViewById(R.id.reason);
		btn_agree_add = (Button)findViewById(R.id.btn_agree_add);
		btn_agree = (Button)findViewById(R.id.btn_agree);
		btn_refuse = (Button)findViewById(R.id.btn_refuse);
		btn_back.setOnClickListener(this);
		btn_agree_add.setOnClickListener(this);
		btn_agree.setOnClickListener(this);
		btn_refuse.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_back:
			super.onBackPressed();
			break;
		case R.id.btn_agree_add:
			TeaLog.i(TAG,"同意并添加");
			
			break;
		case R.id.btn_agree:
			TeaLog.i(TAG,"同意");
			break;
		case R.id.btn_refuse:
			TeaLog.i(TAG,"拒绝");
			break;

		default:
			break;
		}
		
	}
}
